import request from '@/utils/request'
export const addComApi = (data) => {
  return request({
    url: '/community',
    method: 'post',
    data
  })
}
export const getComApi = (id) => {
  return request({
    url: '/community/' + id,
    method: 'get',
  })
}
export const editComApi = (data) => {
  return request({
    url: '/community/' + data.id,
    method: 'put',
    data
  })
}
export const delComApi = (id) => {
  return request({
    url: '/community/' + id,
    method: 'delete'
  })
}